
def appear_(name: object) -> object:
    """

    :rtype: object
    """
    while True:
        appear_table()
        while True:
            choose = input('your choose:')
            choose_arg = choose.upper()
            if choose_arg == 'A':
                file = open('D:/practice/{}.txt'.format(name), 'r', encoding='utf8')
                print(file.read())
                print('显示完毕')
                break
            elif choose_arg == 'B':
                print('没有写代码')
                break
            elif choose_arg == "C":
                print('没有写代码')
                break
            elif choose_arg == "D":
                break
            else:
                print('你的输入有误,请重新输入')
        judge = input('是否返回根目录(Y/N):')
        judge_arg = judge.upper()
        if judge_arg == 'Y':
            break
        else:
            None

def appear_table():
    print('*' * 50)
    print('*{}*'.format('显示'.center(46)))
    print('*' * 50)
    print('*{}*'.format('A:全部显示\tB:按学号索检\tC:按姓名索检\tD:返回'.center(26)))
    print('*' * 50)
